package org.neuedu.mp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Long
 * @since 2020-03-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_emp")
@ApiModel(value="Emp对象", description="")
public class Emp implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "员工编号")
    @TableId(value = "EMP_NO", type = IdType.AUTO)
    private Integer empNo;

    @ApiModelProperty(value = "员工姓名")
    @TableField("ENAME")
    private String ename;

    @ApiModelProperty(value = "岗位")
    @TableField("JOB")
    private String job;

    @ApiModelProperty(value = "上级编号")
    @TableField("MGR")
    private Integer mgr;

    @ApiModelProperty(value = "入职时间")
    @TableField("HIREDATE")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date hiredate;

    @ApiModelProperty(value = "工资")
    @TableField("SAL")
    private Integer sal;

    @ApiModelProperty(value = "奖金")
    @TableField("COMM")
    private Integer comm;

    @ApiModelProperty(value = "部门编号")
    @TableField("DEPT_NO")
    private Integer deptNo;


}
